Loop-free Gray code algorithm for the e-restricted growth functions
نویسندگان
چکیده
The subject of Gray codes algorithms for the set partitions of {1, 2, . . . , n} had been covered in several works. The first Gray code for that set was introduced by Knuth [3], later, Ruskey presented a modified version of Knuth’s algorithm with distance two, Ehrlich [5] introduced a loop-free algorithm for the set of partitions of {1, 2, . . . , n}, Ruskey and Savage [16] generalized Ehrlich’s results and give two Gray codes for the set of partitions of {1, 2, . . . , n}, and recently, Mansour et al. [11] gave another Gray code and loop-free generating algorithm for that set by adopting plane tree techniques. In this paper, we introduce the set of e-restricted growth functions (a generalization of restricted growth functions) and extend the aforementioned results by giving a Gray code with distance one for this set; and as a particular case we obtain a new Gray code for set partitions in restricted growth function representation. Our Gray code satisfies some prefix properties and can be implemented by a loop-free generating algorithm using classical techniques; such algorithms can be used as a practical solution of some difficult problems. Finally, we give some enumerative results concerning the restricted growth functions of order d.
منابع مشابه
A loop-free two-close Gray-code algorithm for listing k-ary Dyck words
P. Chase and F. Ruskey each published a Gray code for length n binary strings with m occurrences of 1, coding m-combinations of n objects, which is two-close—that is, in passing from one binary string to its successor a single 1 exchanges positions with a 0 which is either adjacent to the 1 or separated from it by a single 0. If we impose the restriction that any suffix of a string contains at ...
متن کاملUse of gray wolf algorithm to optimize gas microturbineUse of gray wolf algorithm to optimize gas microturbine
In this research, optimization of gas microturbine through economic, exergy and environmental analysis has been investigated by the gray wolf algorithm. First, a thermodynamic modeling was performed for each of the above modes, and then using the gray wolf method, optimum points were determined for each systemchr('39')s performance. For modeling, the code written in MATLAB software was used. ...
متن کاملLoop-Free Gray Code Algorithms for the Set of Compositions
The topic of Gray codes for the set of compositions with non-negative integer parts has been studied by several authors. Klingsberg gave a non-recursive description of a Gray code for this set after the recursive version of Knuth. Recently, Walsh modified Klingsberg’s algorithm to find a Gray code which generates the set of all bounded compositions with non-negative integer parts. In this paper...
متن کاملMulti-objective Optimization of Stirling Heat Engine Using Gray Wolf Optimization Algorithm (TECHNICAL NOTE)
The use of meta-heuristic optimization methods have become quite generic in the past two decades. This paper provides a theoretical investigation to find optimum design parameters of the Stirling heat engines using a recently presented nature-inspired method namely the gray wolf optimization (GWO). This algorithm is utilized for the maximization of the output power/thermal efficiency as well as...
متن کاملOptimal power flow based on gray wolf optimization algorithm using probability density functions extraction considering wind power uncertainty
In recent years, utilization of the renewable based power plants has become widespread in the power systems. One of the most widely used renewable based power plants is wind power plants. Due to the utilization of wind energy to generate electricity, wind turbines have not emitted any environmental pollution. Thus, in addition to economic benefits, utilization of these power plants is of great ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Inf. Process. Lett.
دوره 111 شماره
صفحات -
تاریخ انتشار 2011